package people;

import blackjack.Deck;

public class Dealer extends Person{

    public int supplementCards(Deck myDeck){  //庄家补卡，0表示成功，1表示爆牌
        if(this.bestPoint>=17) return 0;
        while(this.bestPoint<17){
            this.addCard(myDeck.drawCard());
            if (this.busted) return 1;
        }
        return 0;
    }

}
